package com.xmg.p2p.base.controller;

import com.xmg.p2p.business.service.IBidRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @Autowired
    private IBidRequestService bidRequestService;

    @RequestMapping("index")
    public String index(Model model){
        model.addAttribute("bidRequests",bidRequestService.indexList(5));
        return "main";
    }
}
